﻿namespace NJQuery {
	using System.Configuration;
	using Configuration;

	/// <summary>
	/// Provides a static instance of the <see cref="Configuration.SettingsSection"/> configuration tree.
	/// </summary>
	public static class Settings {


		#region Static Fields

		private static readonly SettingsSection current = ConfigurationManager.GetSection("njQuery") as SettingsSection ?? new SettingsSection();

		#endregion


		#region Static Properties

		/// <summary>
		/// Gets the current <see cref="Configuration.SettingsSection"/> configuration tree.
		/// </summary>
		public static SettingsSection Current {
			get { return current; }
		}

		#endregion


	}

}